package com.example.conf.teea;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 账户树结构表
 * </p>
 *
 * @author wpdcn
 * @since 2020-03-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_account_tree")
public class SysAccountTreeEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @Column(comment = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 账户id
     */
    @Column(comment = "账户id")
    private Long accountId;

    /**
     * 上级账户id
     */
    @Column(comment = "上级账户id")
    private Long higherAccountId;

    /**
     * 上级层级
     */
    @Column(comment = "上级层级")
    private Integer level;


}
